home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Technotools
/
Technotools (Chestnut CD-ROM)(1993).ISO
/
lang_c
/
msqc25t1
/
tooltest.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-09-06
|
585b
|
30 lines
/* tooltest.c: A demonstration program, A Microsoft QuickC program
Enter into the program list: tooltest.c, toolbox1.c
Variables: a First integer value
b Second integer value
sum Sum of the two values
dif Difference of the two values
This Demonstrates functions in toolbox1 module
*/
#include <stdio.h>
#include "toolbox1.h"
main()
{
int a, b, sum, dif;
a = 3;
b = 4;
sum = add( a, b );
dif = sub( a, b );
printf("\n\na = %d, b = %d\n\n", a, b );
printf("add( a, b ) = %d, sub( a, b ) = %d\n", sum, dif );
}